
<h2 class="contentTitle">表单验证</h2>


<div class="pageContent">
	
	<form method="post" action="<?php echo site_url('admin/video/add_video_external_post');?>" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone)">
		<div class="pageFormContent nowrap" layoutH="97">
			<dl>
				<dt> 视频分类：</dt>
				<dd>
					<input type="text" name="orgLookup.orgName" maxlength="20" class="required" suggestFields="orgNum,orgName" /><a class="btnLook" href="<?php echo site_url('admin/video/video_list');?>" lookupGroup="orgLookup">选择分类</a>
					<span class="info">点放大镜选择哦</span>
				</dd>
			</dl>
			<dl>
				<dt> 视频线路：</dt>
				<dd>
					<select name="type" class="required combox">
						<?php foreach($line_list as $item):?>
						<option value="<?php echo $item->name;?>"><?php echo $item->name;?></option>
						<?php endforeach;?>
					</select>
					<span class="info"></span>
				</dd>
			</dl>
			<dl>
				<dt>视频名称：</dt>
				<dd>
					<input type="text" name="name" maxlength="20" class="required" />
					<span class="info">视频的名称</span>
				</dd>
			</dl>
			<dl>
				<dt>视频地址：</dt>
				<dd>
					<input type="text" name="url" class="url required" />
					<span class="info">视频的外部地址</span>
				</dd>
			</dl>
                        <dl>
				<dt> 是否免费：</dt>
				<dd>
					<select name="free" class="required combox">
						<option value="0">不免费</option>
                                                <option value="1">免费</option>
					</select>
					<span class="info"></span>
				</dd>
			</dl>
                        <dl>
				<dt>免费时长：</dt>
				<dd>
					<input type="text" name="free_lenght" class="" alt="0" />
					<span class="info">视频的外部地址</span>
				</dd>
			</dl>
			<div class="divider"></div>
			<p>如果选择课程分类:那么视频会被放到这个分类下,生成一个新的课程视频</p>
			<p>如果选择课程视频中的某一集 ,那么你将会成为该课程的备用地址</p>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>


<script type="text/javascript">
function customvalidXxx(element){
	if ($(element).val() == "xxx") return false;
	return true;
}
</script>